<?php
class friendlistpage extends page {
	public $title;
	public $friends = "";
	public $test = "";
	public function __construct(){
		parent::__construct();
		$this->title = "信息管理";
		$userid = $_SESSION["userId"];
		$kind = $_GET["kind"];
		$this->friends = $this->getFriendList($userid,$kind);
	}
	public function getFriendList($userid,$kind){
		$dao = new friendlistdao();
		$friends = $dao->getMyFriends($userid,$kind);
		return $friends;
	}
	public function getKindName($kind_id){
		$dao = new friendlistdao();
		$kindName = $dao->getKindName($kind_id);
		return $kindName;
	}
}

?>